<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>答题送红包</title>
  <meta name="viewport"
        content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
  <link rel="stylesheet" type="text/css" href="/static/css/reset.css">
  <style>
    #loading{
      position: fixed;
      width: 100%;
      height: 100%;
      background-color: #fff;
      text-align: center;
      padding-top: 50%;
    }
    #loading img{
      width: 200px;
    }
  </style>
</head>
<body>
<audio src="/static/bg.mp3" id="Jaudio" class="media-audio" preload loop="loop"></audio>
<div id="app"></div>
<div id="loading"><img src="/static/bg.gif" alt=""></div>
<!-- built files will be auto injected -->
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script type="text/javascript">
function audioAutoPlay(id) {
    var audio = document.getElementById(id);
    audio.play();
    document.addEventListener("WeixinJSBridgeReady", function () {
            audio.play();
    }, false);
    document.addEventListener('YixinJSBridgeReady', function() {
        audio.play();
    }, false);
}
audioAutoPlay('Jaudio');
setTimeout(function () {
  document.getElementById('loading').style.display = 'none';
}, 3000);

</script>
</body>
</html>
